package com.chen10.cattle.mapper;

import com.chen10.cattle.model.pojo.CattleFeeding;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【cattle_feeding】的数据库操作Mapper
* @createDate 2025-03-16 17:29:21
* @Entity com.chen10.cattle.model.pojo.CattleFeeding
*/

public interface CattleFeedingMapper {
    int insertOrUpdate(CattleFeeding feeding);
    CattleFeeding selectDailyFeeding(@Param("cattleId") Long cattleId,
                                     @Param("date") Date date);
    List<CattleFeeding> selectFeedingHistory(Long cattleId);
}




